<?php

/***  DOCUMENTATION LAYER

Ceo Unit Testing

Last Update: Sep 2007
	
DESCRIPTION
	this is a group of SimpleTest unit tests called by TestSuite class in
  concept.simpletestgroup.php file
	
NOTES
		
***/

// load classes to be tested
require_once('../php_ceo/base.class.php');
require_once('../php_ceo/kernel.class.php');

// base test
class BaseTest extends UnitTestCase 
{
  function setUp()
  {
    $this->debug = 0;
    $this->Base = new CeoBase();
  }
  
  function tearDown()
  {
  }

  function testCx()
  {
    $this->assertTrue(is_object($this->Base), 'base is object');
  } 
  
  function testTx1()
  {
    $this->assertTrue( $this->Base->tx() == 0, 'tx call #1');
  }
  
  function testTx2()
  {
    $this->assertTrue($this->Base->tx() > 0, 'tx call #2');
  }
}



// base test
class KernelTest extends UnitTestCase 
{
  function setUp()
  {
    $this->debug = 0;
    $this->Test = new CeoKernel();
  }
  
  function tearDown()
  {
  }

  function testCx()
  {
    $this->assertTrue(is_object($this->Test), 'base is object');
  } 
}


?>
